package com.sca;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import com.alibaba.fastjson.JSONObject;

@FeignClient(name = "srv", fallback = ProductFeignClientFallBack.class)
public interface MyFeignClient {
	
	
	@GetMapping(value = "/product/{id}")
	JSONObject findById(@PathVariable("id") Integer id);

}
